home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Information / WebSites / Wirenet / files / getstatus.lha / GetStatus
Text File  |  1999-01-01  |  643b  |  25 lines

  1. /* Get status from U-Net and display if information has changed */
  2.  
  3. options results
  4. address command
  5.  
  6. /* Change these if you need to */
  7. StatusFile = 'S:U-Net.Status'
  8. Fingercmd  = 'finger'
  9. Window     = 'CON:0/0/615/200/Status/AUTO/CLOSE/WAIT/INACTIVE'
  10.  
  11. /* Don't change these */
  12. Server     = 'status@status.u-net.net'
  13. if ~show('L','rexxsupport.library') then do
  14.   if ~addlib('rexxsupport.library',0,-30) then call ShutDown('Failed to open rexxsupport.library')
  15.   end
  16.  
  17. OldSize = subword(statef(StatusFile),2,1)
  18. FingerCmd Server '>'StatusFile
  19. NewSize = subword(statef(StatusFile),2,1)
  20.  
  21. if NewSize ~= OldSize then 'Type' StatusFile '>'Window
  22.  
  23. exit
  24.  
  25.